home *** CD-ROM | disk | FTP | other *** search
/ Fritz: All Fritz / All Fritz.zip / All Fritz / FILES / DATATION / 3X5CARD.LZH / CHAP3.DOC < prev    next >
Text File  |  1986-01-15  |  56KB  |  1,772 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.      CHAPTER  3  -  TRAINING LESSONS
  9.  
  10.  
  11.      In these training lessons we use the case study method.  Our subject is
  12.      John Shell, a computer consultant  who  uses  3by5  in  his  daily act-
  13.      ivities.  He has five files that he uses routinely:
  14.  
  15.        1. ADDRESS  - a file of clients, suppliers, business contacts and 
  16.                      computer journal editors.  Their addresses and
  17.                      telephone numbers are included.  He also lists the
  18.                      equipment at each client's site.  This file is divided
  19.                      into fields of information (e.g. Name, Address, Phone).
  20.  
  21.        2. PROGRAMS - a file of notes and comments on programs the 
  22.                      consultant uses and recommends.
  23.  
  24.        3. REF      - a file of references on sundry topics.
  25.  
  26.        4. PROJECTS - a file of ongoing projects in which the consultant
  27.                      is involved.
  28.  
  29.        5. MEMOS    - a file of memoranda from the consultant.
  30.  
  31.        6. SLIDES   - a file of John's 35mm slides that he uses for talks.
  32.  
  33.        7. QUIZ     - a file of test questions that John uses for an
  34.                      evening class in data processing that he teaches.
  35.  
  36.      The 3by5  disk comes  with samples  of John's ADDRESS, PROGRAMS and REF
  37.      files.  You will build the MEMOS file as part of a training lesson.
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.                                                                          11
  61.  
  62.  
  63.  
  64.  
  65.  
  66.      3by5
  67.  
  68.      LESSON 1 - Searching 3by5 Files
  69.  
  70.  
  71.      3by5 FILES
  72.  
  73.      3by5 stores your text in files  on hard  disk or  diskette.  3by5 files
  74.      come in  pairs:  a SOURCE FILE that contains text and a companion INDEX
  75.      FILE that allows  you  to  rapidly  search  your  largest  source file.
  76.      3by5 Source  Files have  the extension "3x5"; Index Files the extension
  77.      "MAP."
  78.  
  79.      Before you can work with a  3by5 file  you must  open it.   3by5 allows
  80.      you to  open, search  and edit  up to  five files at a time.  The files
  81.      you open are referred to as files  1  to  5.   The  numbering  of files
  82.      is for  your convenience  in issuing commands and referring to the open
  83.      files.
  84.  
  85.  
  86.      Loading the Program
  87.  
  88.      Insert the DOS system diskette onto  which  you  have  copied  the 3by5
  89.      files  in  drive  A  (see  Installing  3by5 in Chapter 2).  Turn on the
  90.      computer or  reset it  by pressing  the Ctrl,  Alt and  Del keys simul-
  91.      taneously.  Enter the date and time if asked.
  92.  
  93.      DURING THESE  LESSONS IT  IS IMPORTANT THAT YOU REBOOT THE SYSTEM SINCE
  94.      3BY5 REQUIRES THAT DOS BE CONFIGURED FOR 16 OR MORE FILES.
  95.  
  96.      A NOTE TO HARD DISK USERS:  For these lessons you  will use  only drive
  97.      A with the system booted to drive A.
  98.  
  99.  
  100.      Starting 3by5
  101.  
  102.      When the "A>" prompt appears, type [3by5] <Enter>.  
  103.  
  104.      The program  will be  loaded into memory and the 3by5 Title Screen dis-
  105.      played.  Press any key to continue,  and the  following screen  will be
  106.      displayed:
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.           12
  120.  
  121.  
  122.  
  123.  
  124.  
  125.                                                                 3by5 LESSONS
  126.  
  127.  
  128.       ---------------------------------------------------------------
  129.      |     File     Type    Index   Record   Number of   Number of   |
  130.      |                              Length    Fields      Records    |
  131.      | 1                                                             |
  132.      | 2                                                             |
  133.      | 3                                                             |
  134.      | 4                                                             |
  135.      | 5                                                             |
  136.      |                                                               |
  137.      |                                                               |
  138.      |                                                               |
  139.      |                                                               |
  140.      |                                                               |
  141.      |                                                               |
  142.      |                                                               |
  143.      |                                                               |
  144.      |                                                               |
  145.      |>Edit<  Search  Print  Files  Utilities  Quit                  |
  146.      |Edit file                                                      |
  147.       --------------------------------------------------------------- 
  148.  
  149.  
  150.      The screen has two sections:  The Command Menu at the bottom is used for
  151.      issuing commands, and the File Information Window  at the  top provides
  152.      you with information on currently open files.
  153.  
  154.  
  155.  
  156.      Main Command Menu  (Main Menu)  
  157.  
  158.  
  159.       >Edit<  Search  Print  Files  Utilities  Quit
  160.       Edit file
  161.  
  162.  
  163.  
  164.      The  first  line  (Command  Line)  of  the Main Menu lists the commands
  165.      that may be executed.
  166.  
  167.      The second line (Auto  Help  Line)  is  highlighted,  i.e. displayed in
  168.      reverse video.  It gives you information on the current command.
  169.  
  170.      On  the  Command  Line  the  command  EDIT  is highlighted (depicted in
  171.      this documentation by being enclosed by >< signs).  The area in reverse
  172.      video is  called the  Command Indicator.   Press the space bar once and
  173.      the command EDIT will appear in standard video  and the  command SEARCH
  174.      will be  highlighted.  Press  the space bar again and the PRINT command
  175.      will be highlighted.  You may  move  the  Command  Indicator  by press-
  176.      ing the space bar, left or right arrow keys or back space key.
  177.  
  178.                                                                          13
  179.  
  180.  
  181.  
  182.  
  183.  
  184.      3by5
  185.  
  186.  
  187.      You  may  execute  a  command  by  positioning the Command Indicator on
  188.      the command and pressing  <Enter>,  or  by  pressing  the  first letter
  189.      of  the  command  you  want,  regardless of where the command indicator
  190.      is located.
  191.  
  192.      If you become lost  while using  3by5 and  are not  certain what  to do
  193.      next, read  the Auto Help Line at the bottom of the screen.  The infor-
  194.      mation on the line  should help  you decide  what to  do next.   If you
  195.      are still lost, press <Esc> to return to the previous command menu.
  196.  
  197.  
  198.      Opening Files
  199.  
  200.      Press [F]  to issue  the Files  Command.  The File Command Menu will be
  201.      displayed at the bottom of the screen:
  202.  
  203.  
  204.       >Open< Close Records List Directory Index Fields Memory Status
  205.       Open file
  206.       
  207.  
  208.  
  209.      The Auto Help Line informs you that you use the OPEN command  to open a
  210.      file.
  211.  
  212.  
  213.      Press [O] and the program will prompt you:
  214.  
  215.  
  216.       File:
  217.       Enter name of file to open and press <Enter>;   <Esc> to quit
  218.  
  219.  
  220.  
  221.      The  cursor  will  be  blinking;  waiting  for you to enter the name of
  222.      the file you want to open.
  223.  
  224.      Type [programs] <Enter> to open the first sample  file.  Remember, type
  225.      only the  characters within  the square  brackets [], but not the brac-
  226.      kets.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.           14
  238.  
  239.  
  240.  
  241.  
  242.  
  243.                                                                 3by5 LESSONS
  244.  
  245.      The message "WAIT" will be displayed  in  reverse  video  in  the upper
  246.      right corner  of the  screen while  the file is being opened.  If there
  247.      were any errors in  opening the  file, the  program will  inform you of
  248.      the problem,  wait for  you to  press <Enter> and then allow you to re-
  249.      enter the file name.  If there were no  errors, the  screen will appear
  250.      as follows:
  251.  
  252.       ---------------------------------------------------------------
  253.      |    File          Type  Index  Record   Number of   Number of  |
  254.      |                               Length    Fields      Records   |
  255.      | 1  PROGRAMS.3X5  3by5   Sig    256        0           15      |
  256.      | 2                                                             |
  257.      | 3                                                             |
  258.      | 4                                                             |
  259.      | 5                                                             |
  260.      |                                                               |
  261.      |                                                               |
  262.      |                                                               |
  263.      |                                                               |
  264.      |                                                               |
  265.      |File:                                                          |
  266.      |Enter name of file to open and press <Enter>;   <Esc> to quit  |
  267.       --------------------------------------------------------------- 
  268.  
  269.  
  270.  
  271.      After the source and index files have been opened, the name of the file
  272.      will be displayed on the third  line  of  the  screen  across  from the
  273.      number 1.   On the  same line  the program will display the source file
  274.      type (e.g., 3by5, WordStar, etc), the index file type (i.e. None or Sig
  275.      for signature  index), the record length (i.e. the number of characters
  276.      allowed in one record), the number of fields (logical units  into which
  277.      the record is partitioned) and the number of records in the file.  
  278.  
  279.      The program  will prompt  you for  the name of the second file to open.
  280.      We will not open another file at this time.  Press <Esc> to return back
  281.      to the  File Command  Menu.  Press <Esc> one more time to return to the
  282.      Main Menu.
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.                                                                          15
  297.  
  298.  
  299.  
  300.  
  301.  
  302.      3by5
  303.  
  304.      Searching a File
  305.       
  306.  
  307.      The Main Command Menu should appear as below:
  308.  
  309.  
  310.       >Edit< Search  Print  Files  Utilities  Quit
  311.       Edit file
  312.  
  313.  
  314.        
  315.  
  316.      You are  now ready  to search  the file.   Press [S]  and the following
  317.      screen will appear:
  318.  
  319.  
  320.       ---------------------------------------------------------------
  321.      | Field      Search key                                         |
  322.      | Global                                                        |
  323.      |                                                               |
  324.      |                                                               |
  325.      |                                                               |
  326.      |                                                               |
  327.      |                                                               |
  328.      |                                                               |
  329.      |                                                               |
  330.      |                                                               |
  331.      |                                                               |
  332.      |                                                               |
  333.      |                                                               |
  334.      |                                                               |
  335.      |                                                               |
  336.      |Type search key(s) and press <Enter>                           |
  337.      |<F1> Help <F2> Browse <F3> Erase keys <F4> Options <Esc> quit  |
  338.       --------------------------------------------------------------- 
  339.  
  340.  
  341.      The message  "Search Key"   is  a prompt to inform you that the program
  342.      is ready to accept  a search  key.  A  key is  any word,  partial word,
  343.      phrase  or  number  (3  characters  in  length) that you want to search
  344.      for.  As you will see, you may also search for combinations of keys.
  345.  
  346.      The term "Global" under the Field title designates that the search will
  347.      include the entire record.
  348.  
  349.      The Auto  Help Line  informs you that you can press <F1> for help, <F2>
  350.      to browse  through a  file without  specifying a  search key,   <F3> to
  351.      erase  the  previous  search  key  (if  any),  <F4>  for search options
  352.      (e.g. manual or automatic searching, output to another file,  etc.), or
  353.      <Esc> to quit searching and return to the Main Menu.
  354.  
  355.           16
  356.  
  357.  
  358.  
  359.  
  360.  
  361.                                                                 3by5 LESSONS
  362.  
  363.  
  364.      Press <Esc>  once and the Main Menu will be displayed again.  The <Esc>
  365.      key is used to  exit from  the Search  Command.  Press  [S] to continue
  366.      the search  and the Search screen will appear again.  You are now ready
  367.      to start your search for words, phrases, etc.
  368.  
  369.  
  370.  
  371.      Finding Single Keys
  372.  
  373.      A client has called John and  asked  him  to  recommend  a  program for
  374.      storing  and  retrieving  textual  information.  The client wants to be
  375.      able to search on any word, partial word or combination of words.
  376.  
  377.      Type [text] <Enter> in response to the Search  prompt.  Note  that with
  378.      3by5 you do not have to be concerned about capitalization.
  379.  
  380.      The message "Searching PROGRAMS.3x5 will be displayed on the top line to
  381.      indicate that the program is searching PROGRAMS.3X5. 
  382.  
  383.      The first summary will be found, and the record displayed.
  384.      The number of the record will be displayed on the top line.
  385.  
  386.      In the manual search mode 3by5 displays a  record at  a time  and waits
  387.      for  instructions  from  you  before  continuing.  At the BOTTOM of the
  388.      screen the Search Command Menu will be displayed:
  389.  
  390.  
  391.       >Search< Edit  Key  Forward  Backward  Goto  Print  Write  Quit
  392.       Continue search
  393.  
  394.  
  395.  
  396.  
  397.      We will examine the various commands  of  the  Search  Command  Menu as
  398.      we  proceed  through  the  lessons.   Press [S] to continue the search.
  399.      The next  record containing  the search  key "text"  will be displayed.
  400.      Pressing <Enter>  while the  command SEARCH is highlighted has the same
  401.      effect.
  402.  
  403.      You may quit the search at any time by pressing <Esc> or [Q] in re-
  404.      sponse to the Search Menu.   When  the  search  is  completed  you will
  405.      be  informed  of  the  number  of  records found that match your search
  406.      key.  The Auto Help Line will prompt you to press any key  to continue.
  407.      After you press a key, the Search prompt will be displayed again.
  408.  
  409.  
  410.  
  411.  
  412.  
  413.  
  414.                                                                          17
  415.  
  416.  
  417.  
  418.  
  419.  
  420.      3by5
  421.  
  422.      Using Partial Keys
  423.  
  424.      John has  a request  from a client to find a program that will help him
  425.      determine the best carrier for his long distant calls.  John knows of a
  426.      program  that  will  handle  the  task  but can't remember whether it's
  427.      called "TELEDOLL" or "TELEDIAL".
  428.  
  429.      The Search prompt should be present.   Press  <F3>  to  erase  the last
  430.      search key.  Type [teled] <Enter>, and the program will begin to search
  431.      for all records with the letters "teled".  One  record is  found.  John
  432.      calls his client with the information.
  433.  
  434.  
  435.  
  436.      Using Multiple Keys
  437.  
  438.      Records that  contain two  or more  key terms may be found by using the
  439.      logical operators "AND" (&) or "OR"  (|).  The  "AND" operator  is rep-
  440.      resented by  the ampersand  (&).  The  "OR" operator  is represented by
  441.      the vertical bar (|).
  442.  
  443.      To search for a program that stores free-text and has  special features
  444.      to  handle  references  type  [free-text&refer]  <Enter> in response to
  445.      the Search prompt.  One program will be found.
  446.  
  447.      When  the  Search  prompt  appears   again,   the   prior   search  key
  448.      "free-text&refer"  will  be  displayed.   The  cursor will be under the
  449.      letter "f" in free-text.  Press the right arrow key eight times and the
  450.      cursor will  be under  the ampersand ("&").  Now hold the shift key and
  451.      press the "|" key.  Press  <Enter>  and  the  program  will  locate all
  452.      records with either "free-text" or "reference".
  453.  
  454.  
  455.      Browsing
  456.  
  457.      The Browse  mode of  the search  command allows  you to  look at a file
  458.      without specifying a search  key.  All  records will  be displayed.  In
  459.      response to  the Search  prompt, press  <F2>.  The  first record in the
  460.      file will be displayed and the Search Command  Menu will  be displayed.
  461.      Press <Enter>  or [S] again and the second record will be found.  Press
  462.      [B] and the previous record  will  be  displayed.   Press  [G]  and the
  463.      program will prompt you:
  464.  
  465.  
  466.       Goto Record
  467.       Records in file PROGRAMS.3X5: 15
  468.  
  469.  
  470.      Type [6] <Enter> and the program will take you to record 6.
  471.      Press <Esc> to end.
  472.  
  473.           18
  474.  
  475.  
  476.  
  477.  
  478.  
  479.                                                                 3by5 LESSONS
  480.  
  481.      LESSON 2  -  Building and Editing 3by5 FIles
  482.  
  483.      Building a 3by5 File
  484.  
  485.  
  486.      Start from  the Main  Command Menu.   Press [F]  for the Files Command,
  487.      then press [O] to OPEN a file.  The  program will  prompt you  to enter
  488.      the name of the file to be opened.
  489.  
  490.  
  491.      Type [memos]  <Enter> to  open (build) file MEMOS.3X5 and its companion
  492.      index file MEMOS.MAP.
  493.  
  494.      The program displays the message "WAIT"  while  it  tries  to  open the
  495.      file.   Since  the  file  is  not  present on the diskette, the program
  496.      will prompt you:
  497.  
  498.  
  499.       File: memos
  500.       Unable to open file.  Do you want to build the file? (Y/N)
  501.  
  502.  
  503.      If you do not want to create a new file (e.g., if  you typed  the wrong
  504.      name), press [N].
  505.  
  506.  
  507.  
  508.      We want  to build  a new  file, so  press [Y]  and the following prompt
  509.      will appear:
  510.  
  511.  
  512.       Files: memos
  513.       Build like (0 - 5)                0 = standard file
  514.  
  515.  
  516.  
  517.      If one or more files are  already open  and you  build a  new file, the
  518.      program will  allow you  to build use the file settings of an open file
  519.      for the new file.  We will use the default settings,  so press  [0] and
  520.      the program will prompt you:
  521.  
  522.  
  523.  
  524.       Files: memos
  525.       Is the file a 3by5 file? (Y/N)
  526.  
  527.  
  528.  
  529.  
  530.      Press [Y]  to instruct  the program to build a 3by5 file rather than an
  531.  
  532.                                                                          19
  533.  
  534.  
  535.  
  536.  
  537.  
  538.      3by5
  539.  
  540.      ASCII, WordStar  or WordPerfect  file.  The  screen will  the appear as
  541.      follows:
  542.  
  543.  
  544.  
  545.       ---------------------------------------------------------------
  546.      |    File          Type  Index  Record   Number of   Number of  |
  547.      |                               Length    Fields      Records   |
  548.      | 1  PROGRAMS.3X5  3by5   Sig    512        0           15      |
  549.      | 2                                                             |
  550.      | 3                                                             |
  551.      | 4                                                             |
  552.      | 5                                                             |
  553.      |                                                               |
  554.      |                                                               |
  555.      |Maximum characters per record: (32 - 4800)     512             |
  556.      |Number of fields: (0 - 15)                       0             |
  557.      |Left margin: (1 - 70)                            1             |
  558.      |Right margin: (10 - 78)                         78             |
  559.      |Index Density: (1, 2, 3, 4, 5)                   1             |
  560.      |                                                               |
  561.      |Record size suggestions:                                       |
  562.      |   2 x 4 card: 256 bytes with index of 1                       |
  563.      |   3 x 5 card: 512 bytes with index density of 1 or 2          |
  564.      |   5 x 7 card: 1024 bytes with index density of 2 or 3         |
  565.      |   Full page:  4800 bytes with index density of 4 or 5         |
  566.      |                                                               |
  567.      |                                                               |
  568.      |File: memos                                                    |
  569.      |Press <Esc> to cancel; <F10> to save                           |
  570.       --------------------------------------------------------------- 
  571.  
  572.  
  573.  
  574.  
  575.  
  576.      The program  is requesting  information on  the file you want to build.
  577.      The first  item is  the number  of characters  per record.   This is an
  578.      important number.   Once you  specify it for a file, all records in the
  579.      file will have a maximum number of characters  equal to  the number you
  580.      enter.  You may pick any number between 32 and 4800.  
  581.  
  582.      The default  record size  is 512  bytes.  This  number of characters is
  583.      sufficient for most references  and addresses,  and matches  the sector
  584.      size of DOS.
  585.  
  586.      We will use a larger record size for keeping notes. 
  587.      Type  [2000]  <Enter>  to  specify  a record length of 2000 characters.
  588.  
  589.      The program will prompt you for the number  of fields.   The memos file
  590.  
  591.           20
  592.  
  593.  
  594.  
  595.  
  596.  
  597.                                                                 3by5 LESSONS
  598.  
  599.      will not have any fields, so press <Enter> or the Down Arrow to move to
  600.      the next item.
  601.  
  602.      The left margin is usually set at 1.  Press <Enter> to continue. 
  603.  
  604.      The right margin standard setting is 78.  Press <Enter> to  retain this
  605.      setting.  The  cursor will  the go  back to the record size prompt.  If
  606.      you made any mistakes, use the Up and  Down Arrows  to position  to the
  607.      item and enter the correct information.  
  608.  
  609.      Press <F10> to store the file information and build the file.
  610.      The program will build both the source and index files, and then prompt
  611.      you to enter the name of another file  to open.   Press <Esc>  twice to
  612.      return to the Main Menu:
  613.  
  614.  
  615.       >Edit< Search  Print  Files  Utilities  Quit
  616.       Edit file
  617.  
  618.  
  619.  
  620.      If there  were any  problems opening  the file, the program will inform
  621.      you of the problem, ask you  to  press  <Enter>,  and  then  return you
  622.      to the File Command Menu.
  623.  
  624.  
  625.      Adding a Record to a 3by5 File
  626.  
  627.      You will  now learn  how to edit records using file MEMOS.  Press <Esc>
  628.      twice.   The Main Command Menu  should  appear  at  the  bottom  of the
  629.      screen.
  630.  
  631.      Press [E]  to Edit the file.  The program will ask you to select a file
  632.      to edit.  Press [2] to select the second file (MEMOS.3X5).  The program
  633.      will then prompt you for the number of the record to edit: 
  634.  
  635.  
  636.       Edit record 1
  637.       Records in file MEMOS.3X5: 0
  638.  
  639.  
  640.      The number adjacent to the message "Edit record" is always equal to the
  641.      number of records in the file plus one.  This allows you to  just press
  642.      <Enter> to add a record to the file.  Since there are no records in the
  643.      new file, the number "1" is displayed.  
  644.       
  645.      Press <Enter> to add a record to the file.
  646.  
  647.  
  648.  
  649.  
  650.                                                                          21
  651.  
  652.  
  653.  
  654.  
  655.  
  656.      3by5
  657.  
  658.      The screen will appear as shown below:
  659.  
  660.       ---------------------------------------------------------------
  661.      |                                                               |
  662.      |                                                               |
  663.      |                                                               |
  664.      |                                                               |
  665.      |                                                               |
  666.      |                                                               |
  667.      |                                                               |
  668.      |                                                               |
  669.      |                                                               |
  670.      |                                                               |
  671.      |                                                               |
  672.      |                                                               |
  673.      |                                                               |
  674.      |Block Origin 1:1          MEMOS.3X5     Rec 1  Line 1  Col 1   |
  675.      |<F1> Help   <Esc> End/Abort                                    |
  676.       ---------------------------------------------------------------
  677.  
  678.  
  679.  
  680.  
  681.      The blinking cursor is positioned  at  the  upper  left  corner  of the
  682.      window.  The   bottom  two lines of the screen provide editing informa-
  683.      tion.  The first line informs you  of the  current block  origin (star-
  684.      ting position  of a  block of  characters), the  Record number, and the
  685.      Line and Column numbers of the cursor.  
  686.  
  687.      The bottom line informs you  that  pressing  <Esc>  will  give  you the
  688.      Edit Command  Menu, and pressing <F1> will give you a list of the func-
  689.      tion key assignments.
  690.  
  691.      If you press the Caps Lock,  Num Lock  or Scroll  Lock key  the message
  692.      "CAPS", "NUM"  or "SCROLL" will be displayed at the bottom right of the
  693.      screen.  Pressing the key again turns the message off.  
  694.  
  695.  
  696.  
  697.  
  698.  
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708.  
  709.           22
  710.  
  711.  
  712.  
  713.  
  714.  
  715.                                                                 3by5 LESSONS
  716.  
  717.      Typing New Text
  718.  
  719.      Type the following text  (remember,  type  only  the  characters within
  720.      the square brackets, not the brackets):
  721.  
  722.          [This is line one] <Enter>
  723.          [This is l two] <Enter>
  724.          [Thas are line three] <Enter>
  725.  
  726.  
  727.      The text will appear as shown below:
  728.  
  729.          This is line one<
  730.          This is l two<
  731.          Thas are line three<
  732.  
  733.      Note  that  when  you  press  <Enter>,  the program places a solid left
  734.      pointing triangle at the end of  the line  (represented by  "<" in this
  735.      documentation).
  736.  
  737.      Next we will correct the errors in the text. 
  738.  
  739.  
  740.      Inserting one character at a time
  741.  
  742.      The 3by5  editor is  routinely in  the Insert Mode.  Use the arrow keys
  743.      to position the cursor on the space to the right of the solitary letter
  744.      "l" in line 2.  Type [ine]. The text will appear as follows:
  745.  
  746.          This is line one<
  747.          This is line two<
  748.          Thas are line three<
  749.  
  750.  
  751.  
  752.      Overtyping
  753.  
  754.      Use  the  cursor  keys  to  position  the cursor on the third character
  755.      of the third line (the "a" in "thas").   Press <Ins>  to switch  to the
  756.      Overtype Mode.   The message  "OVER" will  appear on the bottom line.  
  757.      Press [i] to enter the letter "i" where the letter "a" is.  Press <Ins>
  758.      to return to the Insert Mode.
  759.  
  760.      The screen will appear as follows:
  761.  
  762.          This is line one<
  763.          This is line two<
  764.          This are line three<
  765.  
  766.  
  767.  
  768.                                                                          23
  769.  
  770.  
  771.  
  772.  
  773.  
  774.      3by5
  775.  
  776.      Deleting one character at a time
  777.  
  778.      You should  be in  insert mode.   If not,  press <Ins>  and the message
  779.      "OVER" will be erased from the  bottom  of  the  screen.   Position the
  780.      cursor on  the letter  "a" in the word "are" in the third line and type
  781.      [is].  The screen will appear as follows:
  782.  
  783.          This is line one<
  784.          This is line two<
  785.          This isare line three<
  786.  
  787.  
  788.      The cursor will now be  positioned  at  the  letter  "e".   Press <Del>
  789.      three  times  to  delete  the  letters  "a",  "r" and 'e' respectively.
  790.      The text will now appear as follows:
  791.  
  792.  
  793.  
  794.          This is line one<
  795.          This is line two<
  796.          This is line three<
  797.  
  798.  
  799.  
  800.      Inserting multiple lines of text - word wrap
  801.  
  802.      In the example above inserting text  was  confined  to  one  line.  The
  803.      same method  is used  to insert  multiple lines  of text.  For example,
  804.      position the cursor to the space to  the  right  of  the  word  "is" in
  805.      line two.  Type:
  806.  
  807.          [  a  test  of  character  insertion  and word wrap.  By the time I
  808.      have typed this far, the cursor will be on the next line.]
  809.  
  810.      Press the Up or Down arrow key to realign the text. 
  811.  
  812.  
  813.      Deleting multiple characters
  814.  
  815.      Position the cursor on  the first  "c" of  the word  "character" on the
  816.      second line.   Press <Del>  twenty four  times and watch the characters
  817.      to the right of the cursor shift to the left each time you press
  818.      <Del>.  Then press any arrow key to realign the text.
  819.  
  820.  
  821.  
  822.  
  823.  
  824.  
  825.  
  826.  
  827.           24
  828.  
  829.  
  830.  
  831.  
  832.  
  833.                                                                 3by5 LESSONS
  834.  
  835.      Saving Your Text
  836.  
  837.  
  838.      Press <Esc>  and the  Edit Command  Menu will  appear at  the BOTTOM of
  839.      the screen:
  840.  
  841.  
  842.       >End< Next  Previous  Abort
  843.       End editing and save changes
  844.  
  845.  
  846.  
  847.      Press [E]  to save  the record.   The program  will then add the record
  848.      to the  file and  display the  following message  at the  bottom of the
  849.      screen:
  850.  
  851.  
  852.       Edit record 2
  853.       Records in file MEMOS.3x5: 1
  854.  
  855.  
  856.  
  857.  
  858.      If  you  want  to  add  another  record to the file, press <Enter>.  If
  859.      you want to return to the Main Menu, press <Esc>.  
  860.  
  861.      In this part of the lesson  you will  return to  the first  record that
  862.      you edited.   Type [1]  <Enter>.  The  program will retrieve the record
  863.      and display it on  the screen.   Note that  the Start  Block message at
  864.      the bottom  right of  the screen informs you that the start of the cur-
  865.      rent block of text is at row one, column one.  
  866.  
  867.      Press <Pg Dn> and the cursor will move to the end of text.  The current
  868.      block of  text will  be all  text from  row 1,  column 1 to the current
  869.      cursor position.  Hold the  <Ctrl> key  and press  <F4>   The following
  870.      prompt will appear at the bottom of the screen:
  871.  
  872.  
  873.       1 Cut Block   2 Copy Block   3 Delete Block   4 insert Block: 0
  874.  
  875.  
  876.  
  877.  
  878.      Press [3]  to delete  the block  of text.   The program will ask you to
  879.      confirm the instruction:
  880.  
  881.  
  882.       1 Cut Block   2 Copy Block   3 Delete Block   4 insert Block: 0
  883.       Delete text? (Y/N):
  884.  
  885.  
  886.                                                                          25
  887.  
  888.  
  889.  
  890.  
  891.  
  892.      3by5
  893.  
  894.  
  895.  
  896.      Press [Y] and the text from the Start  Block (row  1, column  1) to the
  897.      end of text will be erased.  The cursor will now be at row 1, column 1.
  898.  
  899.      You are now ready to type a memo.  Type the following:
  900.  
  901.         [MEMORANDUM] <Enter>
  902.         [TO:  My Clients] <Enter>
  903.         [FROM:  John Shell] <Enter>
  904.         <Enter>
  905.         <Enter>
  906.         This is a brief note to inform you that Softshell Corp. has moved
  907.         to a new location.  Their new address is: <Enter>
  908.         <Enter>
  909.         <Enter>
  910.  
  911.  
  912.      Stop typing after you press the last <Enter>.  The screen should appear
  913.      as follows:
  914.  
  915.         MEMORANDUM <
  916.         TO:  My Clients <
  917.         FROM:  John Shell <
  918.         <
  919.         <
  920.         This is a brief note to inform you that Softshell Corp. has moved
  921.         to a new location.  Their new address is: <
  922.         <
  923.         <
  924.  
  925.  
  926.  
  927.      Before typing the new  address of  Softshell, you  will mark  the start
  928.      of the  address as a block of text that will be copied to another file.
  929.  
  930.  
  931.      Type <Alt><F4> (i.e. hold the <Alt> key and press <F4> to  specify that
  932.      the current cursor position is the start of a block of text.  
  933.  
  934.      Now type the following:
  935.  
  936.          [Softshell Corporation] <Enter>
  937.          [1100 Benjamin Road] <Enter>
  938.          [POB 649] <Enter>
  939.          [Bel Air, MD 21014] <Enter>
  940.          <Enter>
  941.          <Enter>
  942.          [(301) 879-4486] <Enter>
  943.  
  944.  
  945.           26
  946.  
  947.  
  948.  
  949.  
  950.  
  951.                                                                 3by5 LESSONS
  952.  
  953.      You will now copy the above block of text to a temporary buffer.  
  954.  
  955.  
  956.      Press <Ctrl><F4> and the following message will appear:
  957.  
  958.  
  959.       1 Cut Block   2 Copy Block   3 Delete Block   4 insert Block: 0
  960.  
  961.  
  962.  
  963.      Press [2] to copy the block of text to a temporary buffer. 
  964.  
  965.      Finish the memorandum by typing:
  966.  
  967.      <Enter>
  968.      <Enter>
  969.      [Custom versions  of several  of their  products are available for ver-
  970.      tical market applications: academic, legal and medical.] <Enter>
  971.  
  972.  
  973.  
  974.      The memorandum will appear as follows:
  975.  
  976.         MEMORANDUM <
  977.         TO:    My Clients <
  978.         FROM:  John Shell <
  979.         <
  980.         <
  981.         This is a brief note to inform you that Softshell Corp. has moved
  982.         to a new location.  Their new address is: <
  983.         <
  984.         <
  985.          [Softshell Corporation] <Enter>
  986.          [1100 Benjamin Road] <Enter>
  987.          [POB 649] <Enter>
  988.          [Bel Air, MD 21014] <Enter>
  989.          <Enter>
  990.          <Enter>
  991.          [301-879-4486] <Enter>
  992.      <
  993.      <
  994.      Custom versions  of several  of their  products are  available for ver-
  995.      tical market applications: academic, legal and medical.<
  996.  
  997.  
  998.  
  999.  
  1000.  
  1001.  
  1002.  
  1003.  
  1004.                                                                          27
  1005.  
  1006.  
  1007.  
  1008.  
  1009.  
  1010.      3by5
  1011.  
  1012.      If you  have a printer attached to the computer, you may print the memo
  1013.      by pressing <Shift><F7>.
  1014.  
  1015.      To end the editing of this memo, press <Esc> for the Edit Command Menu:
  1016.  
  1017.       
  1018.  
  1019.       >End< Next  Previous  Abort
  1020.       End editing and save changes
  1021.  
  1022.  
  1023.  
  1024.      Press [E] to end the editing of record 1 in file MEMOS.3X5.  The program
  1025.      will prompt you:
  1026.  
  1027.  
  1028.       Edit record: 2
  1029.       Records in MEMOS.3X5: 1
  1030.  
  1031.       
  1032.  
  1033.      Press <Esc> for the Main Menu:
  1034.  
  1035.  
  1036.       >Edit< Search  Print  Command  Files  Utilities  Quit
  1037.       Edit file
  1038.  
  1039.  
  1040.  
  1041.  
  1042.  
  1043.  
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  
  1053.  
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.  
  1061.  
  1062.  
  1063.           28
  1064.  
  1065.  
  1066.  
  1067.  
  1068.  
  1069.                                                                 3by5 LESSONS
  1070.  
  1071.      Editing while searching
  1072.  
  1073.      Press [F]  for the  files command.  When the File Command menu appears,
  1074.      press [C] to close a file.  The program will prompt you:
  1075.  
  1076.  
  1077.       File:
  1078.       Enter number of file to close
  1079.       
  1080.      Press [2] to close the file MEMOS.3X5.  
  1081.  
  1082.      Then press [O] to open another file. Type [ADDRESS] <Enter> to open the
  1083.      file ADDRESS.3X5.  After the file is opened, you will notice that it has
  1084.      four fields and that the record length is set to 512 bytes.  
  1085.  
  1086.      Press <Esc> twice to return to the Main Menu.  Then press [S]  to begin
  1087.      a search.   When the  program prompts you for the file to search, press
  1088.      [2] for file 2,  the  ADDRESS  file.   When  the  prompt  Search Screen
  1089.      appears, type [softshell] <Enter>.
  1090.  
  1091.      The first  record with  the name  Softshell will  be the Softshell Crab
  1092.      Company of  Baltimore.  Press  [S] to  continue the  search.  Record 13
  1093.      will be displayed.  It contains the old address of Softshell Corp.   
  1094.  
  1095.      Type [E]  to edit  the record.   The 3by5 editor will take over and the
  1096.      Editor status lines displayed at the bottom of the screen.   The cursor
  1097.      will be at row 1, column 1.    
  1098.       
  1099.  
  1100.      The records  in the address file are different than those that you have
  1101.      worked with before.  There are four fields:
  1102.  
  1103.        1. Name
  1104.        2. Address 
  1105.        3. Phone 
  1106.        4. Comments
  1107.  
  1108.      To move from one field to  another, press  <Ctrl><Enter> or  <F9>.  The
  1109.      cursor will  move from  its current  location to  the start of the next
  1110.      field.
  1111.  
  1112.      If the cursor is in the last field it will move up to the  first field.
  1113.  
  1114.      You will  now insert  the new address of Softshell Corp. in the Address
  1115.      field.  Move to the start of the address field by  pressing <F9>.  Then
  1116.      press <Ctrl><F4> and the program will prompt you:
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122.                                                                          29
  1123.  
  1124.  
  1125.  
  1126.  
  1127.  
  1128.      3by5
  1129.  
  1130.  
  1131.       1 Cut Block   2 Copy Block   3 Delete Block   4 insert Block: 0
  1132.  
  1133.  
  1134.  
  1135.      Press [4] to insert the block of text from the temporary buffer into the
  1136.      current record at the position of  the cursor.   The older  text may be
  1137.      deleted by defining a block of text and using the delete command. 
  1138.  
  1139.  
  1140.      Press <Esc>  for the  Edit Command Menu.  Press <E> to save the changes
  1141.      made to record 13.  The program  will then  return to  the search mode.
  1142.      Press [Q]  to quit  the search.   The program  will inform you that two
  1143.      records were found.  Press <Enter>  to  return  to  the  Search prompt.
  1144.      Then press <Esc> to return to the Main Menu:
  1145.  
  1146.  
  1147.       >Edit< Search  Print  Files  Utilities  Quit
  1148.       Edit file
  1149.  
  1150.  
  1151.  
  1152.      Press [Q] to quit 3by5.  The program will prompt you: 
  1153.  
  1154.  
  1155.       >No< Yes
  1156.       Do not quit; continue 3by5
  1157.  
  1158.  
  1159.      This last  question prevents  you from accidentally quitting 3by5.  You
  1160.      must press [Y] to quit. 
  1161.  
  1162.      Press [Y] and the program will automatically close all open  3by5 files
  1163.      and return to DOS.  
  1164.  
  1165.      See Chapter 4 for more details on editing records.  
  1166.  
  1167.  
  1168.  
  1169.  
  1170.  
  1171.  
  1172.  
  1173.  
  1174.  
  1175.  
  1176.  
  1177.  
  1178.  
  1179.  
  1180.  
  1181.           30
  1182.  
  1183.  
  1184.  
  1185.  
  1186.  
  1187.                                                                 3by5 LESSONS
  1188.  
  1189.      LESSON 3  -  COPYING AND SORTING RECORDS
  1190.  
  1191.  
  1192.      In this  session you  will learn  how to  selectively copy  (and in the
  1193.      process sort) records from one file  to  another  file.   The  file may
  1194.      be  a  standard  ASCII  file,  WordStar or WordPerfect Document file or
  1195.      another 3by5 file.  The  3by5 Starter  Kit can  sort only  the first 20
  1196.      records of a file.
  1197.  
  1198.  
  1199.      Opening files REF.3X5 and NEWREF.3X5
  1200.  
  1201.      Restart 3by5.  Press any key after the Title Screen is displayed.  Then
  1202.      press [F] for the  Files  Command  and  then  press  [O]  for  the Open
  1203.      Command.  Type  [ref] <Enter>  to open  the reference  file.  After the
  1204.      file is opened, the program will prompt you  for the  name of  the next
  1205.      file to  open.    Type   [newref] <Enter>.  The program will attempt to
  1206.      open the file, but the file is not  present on  the diskette.   It will
  1207.      then ask you whether you want to build the file:
  1208.  
  1209.  
  1210.       File: newref
  1211.       Unable to open file.  Do you want to build the file? (Y/N)
  1212.  
  1213.  
  1214.      Press [Y] to build the file, and the program will prompt you:
  1215.  
  1216.  
  1217.       File: newref
  1218.       Is the file a 3by5 file? (Y/N):
  1219.  
  1220.  
  1221.  
  1222.      Press [Y]  and the  program will  then prompt you for information about
  1223.      the file to be built:
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237.  
  1238.  
  1239.  
  1240.                                                                          31
  1241.  
  1242.  
  1243.  
  1244.  
  1245.  
  1246.      3by5
  1247.  
  1248.  
  1249.       ---------------------------------------------------------------
  1250.      |     File         Type  Index  Record   Number of   Number of  |
  1251.      |                               Length    Fields      Records   |
  1252.      | 1   REF.3X5      3by5   Sig    256        0           78      |
  1253.      | 2                                                             |
  1254.      | 3                                                             |
  1255.      | 4                                                             |
  1256.      | 5                                                             |
  1257.      |                                                               |
  1258.      |                                                               |
  1259.      |Maximum characters per record: (32 - 4800)     512             |
  1260.      |Number of fields: (0 - 10)                       0             |
  1261.      |Left margin: (1 - 70)                            1             |
  1262.      |Right margin: (10 - 78)                         78             |
  1263.      |                                                               |
  1264.      |Record size suggestions:                                       |
  1265.      |   2 x 4 card: 256 bytes with index of 1                       |
  1266.      |   3 x 5 card: 512 bytes with index density of 1 or 2          |
  1267.      |   5 x 7 card: 1024 bytes with index density of 2 or 3         |
  1268.      |   Full page:  4800 bytes with index density of 4 or 5         |
  1269.      |                                                               |
  1270.      |                                                               |
  1271.      |File: newref                                                   |
  1272.      |Press <Esc> to cancel; <F10> to save                           |
  1273.       --------------------------------------------------------------- 
  1274.  
  1275.  
  1276.  
  1277.      In response to the characters per record prompt, type [600] <Enter>.
  1278.      In response to the number of fields, type [4] <Enter>. 
  1279.      Then press <F10>.  The program will then ask you to designate names for
  1280.      each of the four fields:
  1281.  
  1282.  
  1283.  
  1284.  
  1285.  
  1286.  
  1287.  
  1288.  
  1289.  
  1290.  
  1291.  
  1292.  
  1293.  
  1294.  
  1295.  
  1296.  
  1297.  
  1298.  
  1299.           32
  1300.  
  1301.  
  1302.  
  1303.  
  1304.  
  1305.                                                                 3by5 LESSONS
  1306.  
  1307.       ---------------------------------------------------------------
  1308.      |                                                               |
  1309.      |Field     Field Name                                           |
  1310.      |                                                               |
  1311.      | A                                                             |
  1312.      | B                                                             |
  1313.      | C                                                             |
  1314.      | D                                                             |
  1315.      |                                                               |
  1316.      |                                                               |
  1317.      |                                                               |
  1318.      |                                                               |
  1319.      |File: newref                                                   |
  1320.      |Press <Esc> to cancel; <F10> to save                           |
  1321.       --------------------------------------------------------------- 
  1322.  
  1323.  
  1324.      The cursor  will be  blinking across from the letter "A"  and under the
  1325.      caption "Field Name".  Type [REF] <Enter>.
  1326.  
  1327.      The cursor will move to the next line.  Type [CODE #] <Enter>.
  1328.      The cursor will move to the next line.  TYpe [KEYWORDS] <Enter>.
  1329.      The cursor will move to the next line.  Type [COMMENTS] <Enter>.
  1330.  
  1331.  
  1332.      The screen should appear as shown on the next page:
  1333.  
  1334.  
  1335.  
  1336.  
  1337.  
  1338.  
  1339.  
  1340.  
  1341.  
  1342.  
  1343.  
  1344.  
  1345.  
  1346.  
  1347.  
  1348.  
  1349.  
  1350.  
  1351.  
  1352.  
  1353.  
  1354.  
  1355.  
  1356.  
  1357.  
  1358.                                                                          33
  1359.  
  1360.  
  1361.  
  1362.  
  1363.  
  1364.      3by5
  1365.  
  1366.       ---------------------------------------------------------------
  1367.      |                                                               |
  1368.      |Field     Field Name                                           |
  1369.      |                                                               |
  1370.      | A        REF                                                  |
  1371.      | B        CODE #                                               |
  1372.      | C        KEYWORDS                                             |
  1373.      | D        COMMENTS                                             |
  1374.      |                                                               |
  1375.      |                                                               |
  1376.      |                                                               |
  1377.      |                                                               |
  1378.      |File: newref                                                   |
  1379.      |Press <Esc> to cancel; <F10> to save                           |
  1380.       --------------------------------------------------------------- 
  1381.  
  1382.  
  1383.  
  1384.      There will be four fields in the file:
  1385.  
  1386.           REF:      A reference field that has the authors, title and source.
  1387.           CODE #    A code number assigned to the article that designates
  1388.                     where the article is filed in a collection of reprints.
  1389.           KEYWORDS  Keywords that do not appear in the title, but are useful
  1390.                     in retrieving the document.
  1391.           COMMENTS  Comments on the article.
  1392.  
  1393.  
  1394.      Field names may range from zero to eight character in length.
  1395.  
  1396.      Use the Up and  Down  Arrow  keys  to  move  to  a  field  to  make any
  1397.      corrections.   When  you  are  ready,  press  <F10>  to  save  the file
  1398.      specifications and build the file.
  1399.  
  1400.      After NEWREF.3X5 is opened, the program  will ask  you for  the name of
  1401.      the next file to open.  Press <Esc>.  The File Command Menu will appear:
  1402.       
  1403.  
  1404.       >Open< Close Records List Directory Index Fields Memory Status
  1405.       Open file
  1406.  
  1407.  
  1408.  
  1409.  
  1410.  
  1411.  
  1412.  
  1413.  
  1414.  
  1415.  
  1416.  
  1417.           34
  1418.  
  1419.  
  1420.  
  1421.  
  1422.  
  1423.                                                                 3by5 LESSONS
  1424.  
  1425.      Copying and sorting records from REF.3X5 to NEWREF.3X5
  1426.  
  1427.      Press [R] for the Records Command.  The open  files will  be displayed,
  1428.      and at the bottom of the screen the following prompt will appear:
  1429.  
  1430.  
  1431.       Move/Copy/Erase
  1432.       Enter number of source file
  1433.  
  1434.  
  1435.  
  1436.      Press [1]  to specify REF.3x5 as the source file. The program will then
  1437.      prompt you: 
  1438.  
  1439.  
  1440.       Move/Copy/Erase    Source file REF.3X5
  1441.       Enter number of destination file
  1442.  
  1443.  
  1444.      Type [2] to select NEWREF.3X5.  The program will then prompt you:
  1445.  
  1446.  
  1447.       From REF.3X5 To NEWREF.3X5   >Copy< Move
  1448.       Copy a group of records (source records are not changed)
  1449.  
  1450.  
  1451.      At this point you may chose to  Copy  or  Move  records.   If  you Copy
  1452.      a record  from a  source file  to a destination file, the source record
  1453.      is not changed.  If you Move a record from a source file to a des-
  1454.      tination file, the record in the source file is erased.
  1455.  
  1456.      Press [C] to copy records.  
  1457.  
  1458.      The program will prompt you:
  1459.  
  1460.  
  1461.       From REF.3X5  Copy: 1
  1462.       Records in file: 78
  1463.  
  1464.  
  1465.      Type [4] <Enter>.  This is the start of the range  of records  to copy.
  1466.      The program will then prompt you:
  1467.  
  1468.  
  1469.       From REF.3X5  Copy: 4 to 78
  1470.       Records in file: 78
  1471.  
  1472.  
  1473.      Type [16]  <Enter>.  This  is the  end of the range of records to copy.
  1474.      The program will then prompt you:
  1475.  
  1476.                                                                          35
  1477.  
  1478.  
  1479.  
  1480.  
  1481.  
  1482.      3by5
  1483.  
  1484.  
  1485.  
  1486.       From REF.3X5  Copy:  4 to 16 To NEWREF.3X5 At 1
  1487.       Records in file: 0
  1488.  
  1489.  
  1490.      The program  is prompting  you for  the number  of the  first record in
  1491.      the destination  file at  which to  begin to  place the records.  Since
  1492.      the file is empty, the first record that  can be  added is  one.  Press
  1493.      <Enter> for the default of one.  Then you will be asked:
  1494.  
  1495.  
  1496.       From REF.3X5  Copy:  4 to 16 To NEWREF.3X5 At 1
  1497.       Sort records? (Y/N)
  1498.  
  1499.  
  1500.      Press [Y]  to sort  the records  in alphabetical  order by the first 20
  1501.      characters of each record.   
  1502.  
  1503.      The program will sort  the records  and display  the record  numbers as
  1504.      each source record is copied to the destination file.  When the program
  1505.      is finished sorting and copying the records, it will prompt you:
  1506.  
  1507.  
  1508.       FROM ref.3x5  COPY:
  1509.       Records in file: 78
  1510.  
  1511.  
  1512.      It is ready for you to enter another range of  records to  copy.  Press
  1513.      <Esc> three times to return to the Main Menu.  
  1514.  
  1515.      Press [S]  and then  press [2]  to search the file NEWREF.  In response
  1516.      to the "Search" prompt,  press <F2> browse through the  file.  You will
  1517.      see that  the references  have been sorted by first author.  The refer-
  1518.      ences from REF.3X5 have been copied in the REF field of NEWREF.3X5.
  1519.  
  1520.  
  1521.  
  1522.  
  1523.  
  1524.  
  1525.  
  1526.  
  1527.  
  1528.  
  1529.  
  1530.  
  1531.  
  1532.  
  1533.  
  1534.  
  1535.           36
  1536.  
  1537.  
  1538.  
  1539.  
  1540.  
  1541.                                                                 3by5 LESSONS
  1542.  
  1543.      Selectively writing records from REF.3X5 to NEWREF.3X5
  1544.  
  1545.      You will  now search  for a  few references  and write  certain ones to
  1546.      the  output  file.   Press  <Esc>  to  return to the Main Command Menu;
  1547.      then press [S] to  begin searching.   Select file  REF.3X5 as  the file
  1548.      to be searched.
  1549.  
  1550.      The prompt "Search Key:" will appear.  Press <F4> for the Search 
  1551.      Options Menu:
  1552.  
  1553.       ---------------------------------------------------------------
  1554.      |                                                               |
  1555.      |---------------------------------------------------------------|
  1556.      |CURRENT SEARCH OPTIONS                                         |
  1557.      |                                                               |
  1558.      |DISPLAY:       Page of text                                    |
  1559.      |                                                               |
  1560.      |OUTPUT FILE:                                                   |
  1561.      |                                                               |
  1562.      |OUTPUT TO:     Screen                                          |
  1563.      |                                                               |
  1564.      |COUNT:         Display count of records found                  |
  1565.      |                                                               |
  1566.      |SEARCH MODE:   Manual                                          |
  1567.      |                                                               |
  1568.      |                                                               |
  1569.      |                                                               |
  1570.      |                                                               |
  1571.      |                                                               |
  1572.      |                                                               |
  1573.      |>Display< File  Output  Count  Mode  Quit                      |
  1574.      |Page  Topline                                                  |
  1575.       --------------------------------------------------------------- 
  1576.  
  1577.  
  1578.  
  1579.      The current search options are listed and the search option menu appears
  1580.      at the  bottom of  the screen.   Press the  space bar  several times to
  1581.      review the  different options.   You will  only change  one, the output
  1582.      file.
  1583.  
  1584.  
  1585.      Press [F] to specify the output file.  The  program will  list the open
  1586.      files and ask you to enter the number of the output file (i.e. the file
  1587.      that will receive the records).  Press [2] to  select NEWREF.3X5.   The
  1588.      Search Options  will be  displayed again;   press  <Q> to return to the
  1589.      "Search Key:" prompt.  Type [abbott]  <Enter>  so  begin  a  search for
  1590.      records with the name Abbott. 
  1591.  
  1592.  
  1593.  
  1594.                                                                          37
  1595.  
  1596.  
  1597.  
  1598.  
  1599.  
  1600.      3by5
  1601.  
  1602.      When  the  first  reference  with  the  name "Abbott" is displayed, the
  1603.      Record Command Menu will be displayed  at  the  bottom  of  the screen.
  1604.      Press [W]  to write  the currently displayed record to the Output File.
  1605.  
  1606.      The letter "W" will be displayed  in reverse  video in  the upper right
  1607.      corner of  the screen  to inform  you that  the record was written.  It
  1608.      will stay there until you continue the search  for another  record.  If
  1609.      you should press [W] again, a second copy of the record will be written.
  1610.      The letter  "W" in  the upper  right corner alerts you to the fact that
  1611.      you have written the record to the output file once  and should prevent
  1612.      multiple  copies  of  the  record  being  written to the output file by
  1613.      mistake.
  1614.  
  1615.      If you have a printer attached to your machine, press  [P], and  a copy
  1616.      of the current record will be printed.  The letter "P" will be displayed
  1617.      in reverse video in the upper  right  corner  of  the  screen informing
  1618.      you that  the record  is being  printed.  It  will stay there until you
  1619.      continue the search.
  1620.  
  1621.      Now press [S] to continue  the  search,  and  the  program  will return
  1622.      you to the Search prompt since there are no other records with the name
  1623.      "Abbott".  In response to the Search prompt, type [murphy] <Enter>.
  1624.  
  1625.      The first reference with  the name  "Murphy" will  be displayed.  Press
  1626.      [W] to  write the  reference to the output file, then press [S] to con-
  1627.      tinue the search.
  1628.  
  1629.      The second reference with the  name  "Murphy"  will  be  displayed.  It
  1630.      is not  one that  we will copy to the output file, so press [S] to con-
  1631.      tinue the search.
  1632.  
  1633.      No other references will be found.   The program  will ask  you whether
  1634.      you want  to continue the search into file NEWREF.3X5.  Press <Esc> and
  1635.      then <Enter> to return to the Search prompt.
  1636.  
  1637.  
  1638.      In response to the Search prompt, press <Esc>.   The Main  Command Menu
  1639.      will appear.   Press [S]  to begin a new search.  This time select file
  1640.      NEWREF.3X5.  In  response to  the "Search  Key:" prompt,  press <F2> to
  1641.      browse through the entire file.  You will see that the first 13 records
  1642.      are those that you  copied  and  sorted  from  REF.3X5.   The remaining
  1643.      records are those that you wrote to NEWREF.3X5 while searching REF.3X5.
  1644.  
  1645.  
  1646.  
  1647.  
  1648.  
  1649.  
  1650.  
  1651.  
  1652.  
  1653.           38
  1654.  
  1655.  
  1656.  
  1657.  
  1658.  
  1659.                                                                 3by5 LESSONS
  1660.  
  1661.      ADDING FIELDS TO A FILE
  1662.  
  1663.      3by5 files that have no fields may be converted to files with fields by
  1664.      a two-step process.  First  you manually  mark the  end of  each field,
  1665.      then you  copy the  records to a new file in which the fields have been
  1666.      specified.  NOFIELDS.3X5 is a 3by5 file  provided on  the 3by5 diskette
  1667.      for  practice  converting  files  without  fields to those with fields.
  1668.      Open  the  file  and  edit  the  first  record.   The  first  record in
  1669.      NOFIELDS.3X5 is:
  1670.  
  1671.      Jones, John<
  1672.      Purchasing Agent<
  1673.      <
  1674.      ACME Industries<
  1675.      Suite 234<
  1676.      111 Eastern Highway<
  1677.      Baltimore, MD 21230<
  1678.      <
  1679.      301-555-2385<
  1680.      <
  1681.  
  1682.  
  1683.      You will  divide the record into four fields - name, title, address and
  1684.      telephone number.
  1685.  
  1686.      Position the cursor to the end of line one and press
  1687.      <Ctrl> <Enter>.  A double  arrow  and  a  small  triangle  will appear,
  1688.      designating the  end of  the field.  This is the End of Field Mark that
  1689.      designates the end of one field and the beginning of another.   
  1690.  
  1691.      Next, move to the title line and put an End of Field Mark at the end of
  1692.      the word Agent.  
  1693.  
  1694.      Then move the cursor to the end of the ZIP code and press
  1695.      <Ctrl> <Enter> to designate the end of the address field.
  1696.  
  1697.      Move to the end of the telephone number and press <Ctrl> <Enter>.
  1698.  
  1699.      To avoid  excessive blank  lines between  fields, you should remove any
  1700.      blank lines by deleting any triangles that appear on blank  lines.  The
  1701.      screen will appear as:
  1702.  
  1703.      Jones, John|<
  1704.      Purchasing Agent|<
  1705.      ACME Industries<
  1706.      Suite 234<
  1707.      111 Eastern Highway<
  1708.      Baltimore, MD 21230|<
  1709.      301-555-2385|<
  1710.  
  1711.  
  1712.                                                                          39
  1713.  
  1714.  
  1715.  
  1716.  
  1717.  
  1718.      3by5
  1719.  
  1720.      The |< mark signifies the end of a field.
  1721.  
  1722.      Save  the  changes  to  record  by  pressing <Esc> and then [E].  Press
  1723.      <Esc> twice to return to the Main Menu.  End of  Field Marks  have been
  1724.      previously added to the other records in the file.  
  1725.  
  1726.  
  1727.      From the  Main Menu  press [F]  for the files command and [O] to open a
  1728.      file.  Type [FIELDS] <Enter>.  The file does not exist, and the program
  1729.      will ask you whether you want to build it.  Type [Y].  The program will
  1730.      then ask you whether it is a 3by5 file.  Press [Y] to  designate a 3by5
  1731.      file.  Set  the number  of characters  per record  to 256, then set the
  1732.      number of fields to 5, then press <F10>. 
  1733.  
  1734.      The program will list five  fields  and  ask  for  field  names.  Enter
  1735.      the following field names:
  1736.  
  1737.      Field       Field Name
  1738.  
  1739.       A          NAME
  1740.       B          TITLE 
  1741.       C          ADDRESS
  1742.       D          PHONE
  1743.       E          COMMENTS
  1744.  
  1745.  
  1746.      Press <F10>  to save  the field  names and build the file.  The destin-
  1747.      ation file can have fewer or more fields that the  file from  which the
  1748.      records will be copied.
  1749.  
  1750.      After the  file is  built, press  <Esc> to  return to  the File Command
  1751.      Line.  Press [R] for  the  Records  Command.   Select  NOFIELDS  as the
  1752.      source file  and FIELDS  as the destination file.  Copy all the records
  1753.      from NOFIELDS to FIELDS.3X5.  
  1754.  
  1755.      You may use search or edit to examine  the records  in file FIELDS.3X5.
  1756.      You will  see that each record has five fields and that the appropriate
  1757.      information has been copied to each field.
  1758.  
  1759.  
  1760.  
  1761.  
  1762.  
  1763.  
  1764.  
  1765.  
  1766.  
  1767.  
  1768.  
  1769.  
  1770.  
  1771.           40
  1772.